package com.yincb.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.beans.factory.annotation.Autowired;

@Component
public class Demo2Service {

    private static final Logger logger = LoggerFactory.getLogger(Demo2Service.class);

    @Autowired
    private DemoService demoService;

    public String demo2() {

        logger.info("demo2");

        demoService.demo();

        return "demo2";
    }

    public String demo3(String name) {

        logger.info("demo3 name = {}", name);

        demoService.demo();

        return "demo3";
    }

}
